using System;
using System.Collections.Generic;
using System.Text;

namespace IWS.Lib.SingleSignOn.ServiceResponses
{
	[Serializable]
	public class ServiceResponseBase
	{
		public enum eResult
		{
			Unknown,
			Success,
			Error,
			InvalidSession,
			InvalidLogin
		}
		
		string m_Message;
		eResult m_Result;

		/// <summary>
		/// Create a new serviceresponse
		/// </summary>
		public ServiceResponseBase()
		{
			init();
		}


		private void init()
		{
			m_Result = eResult.Unknown;
			m_Message = String.Empty;
		}


		#region Properties

		/// <summary>
		/// Result data
		/// </summary>
		public eResult Result
		{
			get { return m_Result; }
			set { m_Result = value; }
		}

		/// <summary>
		/// Error if any occurred
		/// </summary>
		public string Message
		{
			get { return m_Message; }
			set { m_Message = value; }
		}
		#endregion

	}
}
